import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from "element-ui";
import 'element-ui/lib/theme-chalk/index.css'
import './registerServiceWorker'
import "font-awesome/css/font-awesome.css";
import {Notification, Message, MessageBox} from "element-ui";

// 字体图标
Vue.use(ElementUI);

Vue.config.productionTip = false

//将判空方法注册到全局
Vue.prototype.$isEmpty = function (val) {
  return val === undefined || val === '' || val === null
}

//将常用UI组件注册到全局
Vue.prototype.$Msg = {
  Message: Message,
  MessageBox : MessageBox,
  Notification: Notification
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
